Enable tmem functionality for PV on HVM guests. Guest kernel
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jun 2010 18:19:25 +0000 (19:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jun 2010 18:19:25 +0000 (19:19 +0100)
commit5afab625f400e571b78aaf3b7d2f5644c06d07b3
tree28deac6896ee1fcad69373b3fa92ec345c618e67
parent3d5e6a3ff38302913fff925660e947b0256166f7
Enable tmem functionality for PV on HVM guests.  Guest kernel
must still be tmem-enabled to use this functionality (e.g.
won't work for Windows), but upstream Linux tmem (aka
cleancache and frontswap) patches apply cleanly on top
of PV on HVM patches.

Also, fix up some ASSERTS and code used only when bad guest
mfns are passed to tmem.  Previous code could crash Xen
if a buggy/malicious guest passes bad gmfns.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/arch/x86/hvm/hvm.c
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h